#include"udpClient.hpp"
#include<memory>
using namespace std;
using namespace client;
int main(int argv,char* argc[])
{
    if(argv != 3)
    {
        cout<<"传入 Serverip,Serverport"<<endl;
        exit(2);
    }
    uint16_t port = atoi(argc[2]);
    string ip = argc[1];
    unique_ptr<udpClient>udC(new udpClient(port,ip));
    udC->Init();
    udC->run();
    return 0;
}